package com.springcontext.reference.circular;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

  /**
   * 演示循环依赖
   */
  @org.junit.Test
  public void test4(){
    AnnotationConfigApplicationContext applicationContext =
            new AnnotationConfigApplicationContext(CompentScanConfig.class);

    CircularC bean = applicationContext.getBean(CircularC.class);

  }


}
